import http from '@/utils/http'

// 获取结算页信息
export const getCheckInfoAPI = (userId) => {
  return http({
    url: '/member/order/pre',
    params: {
      userId
    }
  })
}

// 创建订单
export const createOrderAPI = (data) => {
  return http({
    url: '/member/order',
    method: 'POST',
    data
  })
} 